package com.service;

import com.pojo.Department;
import com.pojo.Employee;
import com.pojo.view.StaffAnnualLeave;

import java.util.List;

public interface EmployeeService {

    String getDepartmentByUsername(String username);

    String getDepartmentByWorkId(String workId);

    void setAnnualLeaveTotalByWorkId(String workId, int annualLeaveTotal);

    void setAnnualLeaveRemainByWorkId(String workId, int reduceDay);

    void addEmployee(Employee employee);

    int getAnnualLeaveRemainByUsername(String username);

    int getLeaveTotalByUsername(String username);

    int getOutTotalByUsername(String username);

    List<Employee> getAllEmployee();

    Employee getEmployeeByUsername(String username);
}
